package com.wx.network.handler;

import com.wx.network.handler.handlerInterface.RpcDataOperate;
import com.wx.network.mesg.Request;
import io.netty.channel.ChannelHandlerContext;

public class RpcHandlerContext {
    public void setRpcDataOperate(RpcDataOperate rpcDataOperate) {
        this.rpcDataOperate = rpcDataOperate;
    }

    private RpcDataOperate rpcDataOperate;

    //进行实际操作
    public void operateDate(ChannelHandlerContext channelHandlerContext, Request request){
      //发送数据
       rpcDataOperate.handleData(channelHandlerContext,request);
    }
}
